<%@ page import="com.oval.util.JspHelper" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ page language="java" %>
<%@ page import="java.util.*" %>

<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#999999">
<tr> 
  <td class="td_title_bg">
     Component Name
  </td>
  <td class="td_title_bg">
     # Of Creating Params
  </td>
  <td class="td_title_bg">
     # Of Returning Params
  </td>
  <td class="td_title_bg">
     # Of JobUnits
  </td>
  <td class="td_title_bg">
     # Of Conditions
  </td>
  <td class="td_title_bg">
     # Of Forwards
  </td>
  <td class="td_title_bg">
     # Of Components
  </td>
</tr>
  <% Iterator it = com.oval.foundation.container.ComponentContainer.getComponentMetas();
     String searchParam = (String)request.getParameter("searchParam");
     while(it.hasNext())
     {
       com.oval.foundation.metadata.workflow.ComponentEntity ent = (com.oval.foundation.metadata.workflow.ComponentEntity)it.next();
       if(searchParam != null && (ent.getName().indexOf(searchParam.trim()) == -1))
         continue;
       %>
     <tr class="td_bg_row"> 
       <td class="td_center">
         <div align="left">
         <a href="javascript:popupTree('showEntity.jsp?nocache=&type=Component&name=<%=JspHelper.filterNull( ent.getName() )%>')"><%=JspHelper.filterNull( ent.getName() )%></a>
         </div>
       </td>
       <td class="td_center">
         <div align="left">
         <%=JspHelper.filterNull( ent.getCreateParamSize() )%>
         </div>
       </td>
       <td class="td_center">
         <div align="left">
         <%=JspHelper.filterNull( ent.getReturnParamSize() )%>
         </div>
       </td>
       <% int[] sizeArray = ent.getNumElemMetas(); %>
       <td class="td_center">
         <div align="left">
         <%=JspHelper.filterNull( sizeArray[0] )%>
         </div>
       </td>
       <td class="td_center">
         <div align="left">
         <%=JspHelper.filterNull( sizeArray[1] )%>
         </div>
       </td>
       <td class="td_center">
         <div align="left">
         <%=JspHelper.filterNull( sizeArray[2] )%>
         </div>
       </td>
       <td class="td_center">
         <div align="left">
         <%=JspHelper.filterNull( sizeArray[3] )%>
         </div>
       </td>
     </tr>
  <% } %>
</table>

